package com.xc.quickstart.job;

import com.xxl.job.core.biz.model.ReturnT;
import org.springframework.stereotype.Component;

import java.util.Map;

@Component
public class SampleJobHandler extends BaseJobHandler {

    @Override
    protected String getJobName() {
        return "简单示例任务";
    }

    @Override
    protected ReturnT<String> doExecute(Map<String, String> args) {
        System.out.println("执行sample任务");
        return ReturnT.SUCCESS;
    }

}
